package com.htudata.zabbix.group.service;

import com.alibaba.fastjson.JSONObject;
import com.htudata.core.util.operation.StringOperationUtils;
import org.springframework.stereotype.Service;

@Service
public class GroupService {

  public static final String DATAE_HOSTS_GROUP_ID = "15";
  
  public static final String DATAE_TEMPLATES_GROUP_ID = "16";
  
  public static boolean isValidGroupId(String id) {
    if (StringOperationUtils.isPositiveInt(id))
      return true; 
    return false;
  }
  
  public static JSONObject getDataeHostsGroupIdObj() {
    JSONObject result = new JSONObject();
    result.put("groupid", "15");
    return result;
  }
  
  public static JSONObject getDataeTemplatesGroupIdObj() {
    JSONObject result = new JSONObject();
    result.put("groupid", "16");
    return result;
  }
}
